﻿using FHJFPro.Base;
using FHJFPro.UserInfos.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace FHJFPro.UserInfos
{
  public  interface IUserInfoService : IApplicationService
    { /// <summary>
      /// 新增用户
      /// </summary>
      /// <param name="input"></param>
      /// <returns></returns>
        Task<ResponseResult<UserInfoDto>> CreateAsync(CreateUserInfoDto input);

        /// <summary>
        /// 批量新增用户
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ResponseResult<IEnumerable<UserInfoDto>>> CreateManyAsync(IEnumerable<CreateUserInfoDto> input);

        /// <summary>
        /// 查找用户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ResponseResult<UserInfoDto>> GetAsync(Guid id);


        Task<ResponseResult<UserInfoDto>> FindByNameAsync(string name);
        /// <summary>
        /// 查找所有用户
        /// </summary>
        /// <returns></returns>
        Task<ResponseResult<IEnumerable<UserInfoDto>>> GetAllAsync();

        Task<ResponseResult<List<UserInfoDto>>> GetPageListAsync(GetUserInfoListDto input);
    }
}
